home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / checkbox / plugins / proxy_info.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-10-12  |  1.1 KB  |  27 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. from checkbox.lib.environ import add_variable
  5. from checkbox.properties import String
  6. from checkbox.plugin import Plugin
  7.  
  8. class ProxyInfo(Plugin):
  9.     http_proxy = String(required = False)
  10.     https_proxy = String(required = False)
  11.     
  12.     def register(self, manager):
  13.         super(ProxyInfo, self).register(manager)
  14.         self._manager.reactor.call_on('gather', self.gather, -1000)
  15.  
  16.     
  17.     def gather(self):
  18.         if self.http_proxy:
  19.             add_variable('http_proxy', self.http_proxy)
  20.         
  21.         if self.https_proxy:
  22.             add_variable('https_proxy', self.https_proxy)
  23.         
  24.  
  25.  
  26. factory = ProxyInfo
  27.